package com.hhit.collaborative_learning.learning;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.hhit.collaborative_learning.dao.impl.PublicDaoImplMySql;

public class ExamineApplyServlet extends HttpServlet {
	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
	}

	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		String type=request.getParameter("type");
		String userId=request.getParameter("userId");
		String time=request.getParameter("time");
		PublicDaoImplMySql dao=new PublicDaoImplMySql();
		response.getWriter().print(dao.examine(type, Integer.parseInt(userId), time));
	}

}
